<?php
abstract class Bean
{
    protected $_id;
    protected $_class_name;
    protected $_bean_name;

    abstract protected function get_class_name();

    public function __construct()
    {
        $this->_class_name = $this->get_class_name();
        $this->_bean_name = strtolower(substr($this->_class_name, 5));
    }

    public function save()
    {
    }

    public function delete()
    {
    }
}
